package com.npfs.common.persistent;

import java.io.Serializable;
import java.util.List;

public interface BaseDao<T, ID extends Serializable> {
	public static final NullValue nullValue = new NullValue();

	public static class NullValue {
	}

	public int deleteByIds(Iterable<ID> ids);

	public List<T> queryForList(String hql, Object... params);

	public List<T> queryForListUseSQL(String sql, Object... params);

	public T queryForObject(String hql, Object... params);

	public T queryForObjectUseSQL(String sql, Object... params);

	public int updateObjectUseHQL(String hql, Object... params);

	public int updateObjectUseSQL(String sql, Object... params);
}
